﻿<%@ Page Title="Content Control Types" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="ControlTypes.aspx.cs" Inherits="Templates_ControlTypes" %>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <div class="actions">
        <asp:LinkButton ID="lnkAdd" CssClass="add" Text="Add new control type" runat="server" />
    </div>
    <telerik:RadGrid ID="grid" SkinID="FormsEdit" DataSourceID="dsTypes" AutoGenerateColumns="false" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" runat="server">
        <MasterTableView EditMode="EditForms" InsertItemDisplay="Bottom" DataKeyNames="Id, ConcurencyId">
            <Columns>
                <acms:RadGridTextBoxColumn HeaderText="Name" DataField="Name" Required="true"/>
                <acms:RadGridTextBoxColumn HeaderText="Admin Display" Width="500" DataField="AdminDisplayControlType" Display="false" Required="true"/>
                <acms:RadGridTextBoxColumn HeaderText="Admin Edit" Width="500" DataField="AdminEditControlType"  Display="false" Required="true"/>
                <acms:RadGridTextBoxColumn HeaderText="Front End Display" Width="500" DataField="FrontEndControlType" Display="false" Required="true"/>
                <acms:RadGridTextAreaColumn HeaderText="Notes" Rows="5" Cols="100" DataField="Notes" />
                <acms:RadGridEditColumn />
                <acms:RadGridDeleteColumn />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <acms:ControlTypeDataSource ID="dsTypes" runat="server" />
</asp:Content>

